package ns.om.domain.dict

/**
 * 优先级
 * @author neo
 * 2012-8-30
 */
class Priority {
	String code;
	String name;
	Integer score;


	static mapping = {
		id name:'code',generator:'assigned'
	}
	
	static init ={
		new Priority(code:'High',name:'高',score:3).save()
		new Priority(code:'Medium',name:'中',score:2).save()
		new Priority(code:'Low',name:'低',score:1).save()
	}

	@Override
	public String toString() {
		return "$name";
	}
}
